package net.borderwars.webstartclient;

import net.borderwars.sdk.Robot;
import net.borderwars.util.GUIUtils;
import net.borderwars.vm.VirtualMachine;

import javax.swing.*;

/**
 * @author ehubbard
 *         Date: May 16, 2006
 *         Time: 10:09:16 AM
 */

public class Debug {
    private static JFrame frame;
    private JList lbyteCode;
    private JPanel pByteCode;
    private JPanel pSource;
    private JPanel pStack;
    private JButton button1;
    private JButton button2;
    private JButton button3;
    private JButton button4;
    private JPanel pButtons;
    private JPanel pMain;
    private Robot robot;
    private VirtualMachine vm;

    public static final int WIDTH = 300;
    public static final int HEIGHT = 256;
    private JPanel pFields;
    private JPanel pVariables;
    private JList lStack;
    private JTable table1tVariables;
    private JList list1;
    private JTable tFields;

    public Debug (Robot r, VirtualMachine vm) {
        robot = r;
        this.vm = vm;
        frame = new JFrame ("Debug");
        frame.setContentPane (pMain);
        GUIUtils.centerFrame (frame, WIDTH, HEIGHT);
        frame.setDefaultCloseOperation (JFrame.DISPOSE_ON_CLOSE);
    }
}
